package edu.scau.divineplace.entity.query;

import com.baomidou.mybatisplus.annotation.*;
import edu.scau.divineplace.entity.enums.CommentTargetTypeEnum;
import edu.scau.divineplace.entity.enums.IsReadEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author x1aolone
 * @since 2020-12-06
 */
@Data
public class CommentForumQuery implements Serializable {

    @NotNull
    @ApiModelProperty(value = "父评论id，默认为0")
    private Long parentId;

    @NotNull
    @ApiModelProperty(value = "被回复的评论的id，无回复为0")
    private Long replyCommentForumId;

    @NotNull
    @ApiModelProperty(value = "被回复的用户的id，无回复为0")
    private Long replyUserId;

    @NotNull
    @ApiModelProperty(value = "评论的用户id")
    private Long userId;

    @NotNull
    @ApiModelProperty(value = "评论方向，1人物评论/2日志评论")
    private Integer commentTargetType;

    @NotNull
    @ApiModelProperty(value = "评论的人物id/日志id")
    private Long commentTargetId;

    @NotBlank
    @ApiModelProperty(value = "评论内容")
    private String comment;
}
